﻿using System;
using System.ComponentModel;

using DevExpress.Xpo;
using DevExpress.Data.Filtering;

using DevExpress.ExpressApp;
using DevExpress.Persistent.Base;
using DevExpress.Persistent.BaseImpl;
using DevExpress.Persistent.Validation;

namespace DrugShop.Module
{
    [DefaultClassOptions]
    public class 基础编码 :XPObject
    {
        public 基础编码(Session session)
            : base(session)
        {
            // This constructor is used when an object is loaded from a persistent storage.
            // Do not place any code here or place it only when the IsLoading property is false:
            // if (!IsLoading){
            //    It is now OK to place your initialization code here.
            // }
            // or as an alternative, move your initialization code into the AfterConstruction method.
        }
        public override void AfterConstruction()
        {
            base.AfterConstruction();
            // Place here your initialization code.
        }
        private string _代码;
        [Custom("Caption", "代码")]
        public string 代码
        {
            get { return _代码; }
            set { SetPropertyValue<string>("代码", ref _代码, value); }
        }
        private string _名称;
        [Custom("Caption", "名称")]
        public string 名称
        {
            get { return _名称; }
            set { SetPropertyValue<string>("名称", ref _名称, value); }
        }
        private string _输入码;
        [Custom("Caption", "输入码")]
        public string 输入码
        {
            get { return _输入码; }
            set { SetPropertyValue<string>("输入码", ref _输入码, value); }
        }
        private string _简介;
        [Custom("Caption", "简介")]
        [Size(500)]
        public string 简介
        {
            get { return _简介; }
            set { SetPropertyValue<string>("简介", ref _简介, value); }
        }

    }

}
